negotiator
Class NegotiationResult

java.lang.Object
  extended by negotiator.NegotiationResult

public class NegotiationResult
extends java.lang.Object


Constructor Summary
NegotiationResult(double myDiscountedUtility, Action lastAction, Bid lastBid)
           
 
Method Summary
 Action getLastAction()
           
 Bid getLastBid()
           
 double getMyDiscountedUtility()
           
 boolean isAgreement()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NegotiationResult

public NegotiationResult(double myDiscountedUtility,
                         Action lastAction,
                         Bid lastBid)
Method Detail

isAgreement

public boolean isAgreement()
Returns:
true when the match ended in acceptance.

getMyDiscountedUtility

public double getMyDiscountedUtility()
Returns:
the utility received at the end of the negotiation.

getLastAction

public Action getLastAction()
Returns:
last action executed in the negotiation.

getLastBid

public Bid getLastBid()
Returns:
last bid offered in the negotiation.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object